function OutputView(param) {
	var self = Ti.UI.createWindow({
		title : param.detailTitle,
		//title:_args.title,
		backgroundColor:'#fff'
	});

var knowledgeArea = param.knowledge;
	knowledgeArea = knowledgeArea.replace(/\s+/g,"");
	knowledgeArea[0] = knowledgeArea[0].toLowerCase();
		
		var outputObject = {
		"PlanScheduleManagement" : {
		"output" : ['Schedule Management Plan: can establish the project schedule model development, level of accuracy, units of measure, organizational procedures links, project schedule model maintenance, control thresholds, rules of performance measurement, reporting formats, and process descriptions.'
		]
		}
		,
	"DefineActivities" : { "output" :[
	'Activity lists: is a comprehensive list of all scheduled activities required on the project.  It also includes activity identifier and a scope of work description for each activity in sufficient detail to ensure that project teams understand what is required to be completed.',
		'Activity Attributes: extends the description of activity by identifying the components associated with each activity.  The attributes are used for schedule development and selecting, ordering, and sorting the planned schedule activities in various ways within reports.',
		'Milestone List: is a list that identifies all project milestones and indicates whether the milestone is mandatory.  Milestones unlike schedule activities have zero duration because they represent a moment in time.'
	]},
	"SequenceActivities" : {
		"output" : ['Project Schedule Network Diagrams: is a graphical depiction of the logical relationships among the project schedule activities.',
		'Project Document Updates: are documents that may be updated such as activity lists, activity attributes, milestones and risk register.'
		]},
	"EstimateActivityResources" :{
		"output" : [
		'Activity Resource Requirements: identifies the types and quantities of resources required for each activity in a work package.  The requirements can be aggregated to determine the estimated resources for each work package and work period.',
		'Resource Breakdown Structure:  hierarchical depiction of resources by category and type.',
		'Project Documents Updates: are documents such as activity list, activity attributes and resource calendars.'
	]},
	"EstimateActivityDuration" :{
		"output" : [
		'Activity Duration Estimates: quantitative assessments of the likely number of time periods that are required to complete an activity',
		'Project Documents Updates: are documents that may be updated such as activity attributes, and assumptions made in the activity duration estimate, such as skill levels and availability as well as a basis of estimates for duration.'
	]},
	"DevelopSchedule" :{//todo
		"output" : [
		'Schedule Baseline: the approved version of a schedule model that can be changed only through formal change control procedures and is used as a basis for comparison to actual results.',
		'Project Schedule: ',
		'Schedule Data: the collection of information for describing and controlling the schedule.  It includes at least the schedule milestones, schedule activities, activity attributes, and documentation of all identified assumptions and constraints.',
		'Project Calendars:  identifies working days and shifts that are available for scheduled activities,  It distinguishes time periods in days or parts of days available to complete scheduled activities from time periods that are not available.',
		'Project Management Plan Updates:  elements of the project management that may have been updated.  They may include schedule, baseline, and schedule management plan',
		'Project Documents Update:  These may include activity resource requirements, activity attributes, calendars, and risk register.'
	]},
		"ControlSchedule" :{
		"output" : [
		'Work Performance Information: calculated SV and SPI time performance indicators for WBS components are documented and communicated to stakeholders.',
		'Schedule Forecasts: estimates or predictors and events in the project future based on information and knowledge available at the time of the forecast.',
		'Change Requests: formal request for an alteration in deliverables',
		'Project Management Plan Updates: may include schedule baseline, schedule management plan, and cost baseline',
		'Project Documents Updates: may include schedule data, project schedule, risk register',
		'Organizational Process Assets Updates: may include causes of variances, corrective action chosen and the reasons, other types of lessons learned from project schedule control.'
	]}
	
	
	};

	var scrollView = Titanium.UI.createScrollableView({
		
	
		views:[],
		showPagingControl:true,
		pagingControlHeight:30,
		maxZoomScale:2.0,
		currentPage:0
	});
	

	var views_= {};
	var labels = {};
	for(var o = 0; o < outputObject[knowledgeArea].output.length; o++){
	//obj.push({title:outputObject[knowledgeArea].output[o]});
	
	views_['view' + o] = Ti.UI.createView({
		backgroundColor:'black'
	});
	labels['l'+o] = Ti.UI.createLabel({
		text:outputObject[knowledgeArea].output[o],
		color:'#fff',
		width:'auto',
		height:'auto'
	});
	views_['view' + o].add(labels['l' + o]);
	
	scrollView.addView(views_['view'+o]);
	}

	// add table view to the window
	self.add(scrollView);

	return self;
};

module.exports = OutputView;
